package com.candykingdom.components
{
	import com.candykingdom.base.Component;
	
	import flash.display.DisplayObject;
	
	public class Scroll extends Component
	{
		private var _horizontal:Boolean;
		private var _draw:Boolean;
		
		public function Scroll(horizontal:Boolean=true ,draw:Boolean=false)
		{
			super();
			_horizontal = horizontal;
			_draw = draw;
		}
		
		override public function addChild(child:DisplayObject):DisplayObject
		{
			super.addChild(child);
			updateView();
			return child;
		}
		
		override public function removeChild(child:DisplayObject):DisplayObject
		{
			super.removeChild(child);
			updateView();
			return child;
		}
		
		public function updateView():void
		{
			trace(width ,height);
		}
	}
}